package com.bsoft.gol.hcs.clinical.entity;

/**
 * @author zangsf
 * @throws
 * @description:
 * @return:
 * @date: 2021-06-24-14:37
 */
import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * @author zangsf
 * @throws
 * @description:互联网医院的表
 * @return:
 * @date: 2021-06-24-13:16
 */
@Entity
@Table(name = "consult_ask", catalog = "")
public class HoConsultAsk {
    private long consultId;
    private String hospitalCode;
    private String hospitalName;
    private String departmentId;
    private String departmentCode;
    private String departmentName;
    private byte busType;
    private String consultType;
    private String userId;
    private String consultUserId;
    private String patientCode;
    private String personName;
    private Byte age;
    private String gender;
    private String phoneNo;
    private String doctorId;
    private String doctorCode;
    private String doctorName;
    private String doctorJobTitle;
    private Double cost;
    private String question;
    private Date expireTime;
    private Date payTime;
    private Byte cancelType;
    private Date cancelTime;
    private Date finishedTime;
    private Byte consultStatus;
    private String tradeNo;
    private String cancelReason;
    private String hisPreVisitNo;
    private String registeredSerialNo;
    private Date receptionConfirmTime;
    private String roomId;
    private Long onlineQuestioningScheId;
    private Long onlineScheDaypartingId;
    private String consultAskTelephone;
    private String supervisonUploadFlag;
    private Date supervisonUploadTime;
    private String emergencyNumber;
    private String hisOrderNumber;
    private String applyOrganizationCode;
    private String applyOrganizationName;
    private String applyDepartmentCode;
    private String applyDepartmentName;
    private String applyDoctorCode;
    private String applyDoctorName;
    private Byte needHandle;
    private String patientIdentityCardType;
    private String patientIdentityCardNumber;
    private Integer serialNumber;
    private String historyDiagnosisDescribe;
    private Byte patientMedicalCardType;
    private String patientMedicalCardNumber;
    private Date appointmentTime;
    private Byte timeFlag;
    private String platformMpi;
    private String outpatientDeptCode;
    private Integer consultTimesTotal;
    private Integer consultTimesAlready;
    private Byte signInStatus;
    private Date signInTime;
    private Date allocationTime;
    private Date createTime;
    private Date lastModifyTime;

    @Id
    @Column(name = "consult_id")
    public long getConsultId() {
        return consultId;
    }

    public void setConsultId(long consultId) {
        this.consultId = consultId;
    }

    @Basic
    @Column(name = "hospital_code")
    public String getHospitalCode() {
        return hospitalCode;
    }

    public void setHospitalCode(String hospitalCode) {
        this.hospitalCode = hospitalCode;
    }

    @Basic
    @Column(name = "hospital_name")
    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    @Basic
    @Column(name = "department_id")
    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    @Basic
    @Column(name = "department_code")
    public String getDepartmentCode() {
        return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
        this.departmentCode = departmentCode;
    }

    @Basic
    @Column(name = "department_name")
    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    @Basic
    @Column(name = "bus_type")
    public byte getBusType() {
        return busType;
    }

    public void setBusType(byte busType) {
        this.busType = busType;
    }

    @Basic
    @Column(name = "consult_type")
    public String getConsultType() {
        return consultType;
    }

    public void setConsultType(String consultType) {
        this.consultType = consultType;
    }

    @Basic
    @Column(name = "user_id")
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "consult_user_id")
    public String getConsultUserId() {
        return consultUserId;
    }

    public void setConsultUserId(String consultUserId) {
        this.consultUserId = consultUserId;
    }

    @Basic
    @Column(name = "patient_code")
    public String getPatientCode() {
        return patientCode;
    }

    public void setPatientCode(String patientCode) {
        this.patientCode = patientCode;
    }

    @Basic
    @Column(name = "person_name")
    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    @Basic
    @Column(name = "age")
    public Byte getAge() {
        return age;
    }

    public void setAge(Byte age) {
        this.age = age;
    }

    @Basic
    @Column(name = "gender")
    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Basic
    @Column(name = "phone_no")
    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    @Basic
    @Column(name = "doctor_id")
    public String getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(String doctorId) {
        this.doctorId = doctorId;
    }

    @Basic
    @Column(name = "doctor_code")
    public String getDoctorCode() {
        return doctorCode;
    }

    public void setDoctorCode(String doctorCode) {
        this.doctorCode = doctorCode;
    }

    @Basic
    @Column(name = "doctor_name")
    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    @Basic
    @Column(name = "doctor_job_title")
    public String getDoctorJobTitle() {
        return doctorJobTitle;
    }

    public void setDoctorJobTitle(String doctorJobTitle) {
        this.doctorJobTitle = doctorJobTitle;
    }

    @Basic
    @Column(name = "cost")
    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    @Basic
    @Column(name = "question")
    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    @Basic
    @Column(name = "expireTime")
    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    @Basic
    @Column(name = "pay_time")
    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    @Basic
    @Column(name = "cancel_type")
    public Byte getCancelType() {
        return cancelType;
    }

    public void setCancelType(Byte cancelType) {
        this.cancelType = cancelType;
    }

    @Basic
    @Column(name = "cancel_time")
    public Date getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(Date cancelTime) {
        this.cancelTime = cancelTime;
    }

    @Basic
    @Column(name = "finished_time")
    public Date getFinishedTime() {
        return finishedTime;
    }

    public void setFinishedTime(Date finishedTime) {
        this.finishedTime = finishedTime;
    }

    @Basic
    @Column(name = "consult_status")
    public Byte getConsultStatus() {
        return consultStatus;
    }

    public void setConsultStatus(Byte consultStatus) {
        this.consultStatus = consultStatus;
    }

    @Basic
    @Column(name = "trade_no")
    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    @Basic
    @Column(name = "cancel_reason")
    public String getCancelReason() {
        return cancelReason;
    }

    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason;
    }

    @Basic
    @Column(name = "his_pre_visit_no")
    public String getHisPreVisitNo() {
        return hisPreVisitNo;
    }

    public void setHisPreVisitNo(String hisPreVisitNo) {
        this.hisPreVisitNo = hisPreVisitNo;
    }

    @Basic
    @Column(name = "registered_serial_no")
    public String getRegisteredSerialNo() {
        return registeredSerialNo;
    }

    public void setRegisteredSerialNo(String registeredSerialNo) {
        this.registeredSerialNo = registeredSerialNo;
    }

    @Basic
    @Column(name = "reception_confirm_time")
    public Date getReceptionConfirmTime() {
        return receptionConfirmTime;
    }

    public void setReceptionConfirmTime(Date receptionConfirmTime) {
        this.receptionConfirmTime = receptionConfirmTime;
    }

    @Basic
    @Column(name = "room_id")
    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    @Basic
    @Column(name = "online_questioning_sche_id")
    public Long getOnlineQuestioningScheId() {
        return onlineQuestioningScheId;
    }

    public void setOnlineQuestioningScheId(Long onlineQuestioningScheId) {
        this.onlineQuestioningScheId = onlineQuestioningScheId;
    }

    @Basic
    @Column(name = "online_sche_dayparting_id")
    public Long getOnlineScheDaypartingId() {
        return onlineScheDaypartingId;
    }

    public void setOnlineScheDaypartingId(Long onlineScheDaypartingId) {
        this.onlineScheDaypartingId = onlineScheDaypartingId;
    }

    @Basic
    @Column(name = "consult_ask_telephone")
    public String getConsultAskTelephone() {
        return consultAskTelephone;
    }

    public void setConsultAskTelephone(String consultAskTelephone) {
        this.consultAskTelephone = consultAskTelephone;
    }

    @Basic
    @Column(name = "supervison_upload_flag")
    public String getSupervisonUploadFlag() {
        return supervisonUploadFlag;
    }

    public void setSupervisonUploadFlag(String supervisonUploadFlag) {
        this.supervisonUploadFlag = supervisonUploadFlag;
    }

    @Basic
    @Column(name = "supervison_upload_time")
    public Date getSupervisonUploadTime() {
        return supervisonUploadTime;
    }

    public void setSupervisonUploadTime(Date supervisonUploadTime) {
        this.supervisonUploadTime = supervisonUploadTime;
    }

    @Basic
    @Column(name = "emergency_number")
    public String getEmergencyNumber() {
        return emergencyNumber;
    }

    public void setEmergencyNumber(String emergencyNumber) {
        this.emergencyNumber = emergencyNumber;
    }

    @Basic
    @Column(name = "his_order_number")
    public String getHisOrderNumber() {
        return hisOrderNumber;
    }

    public void setHisOrderNumber(String hisOrderNumber) {
        this.hisOrderNumber = hisOrderNumber;
    }

    @Basic
    @Column(name = "apply_organization_code")
    public String getApplyOrganizationCode() {
        return applyOrganizationCode;
    }

    public void setApplyOrganizationCode(String applyOrganizationCode) {
        this.applyOrganizationCode = applyOrganizationCode;
    }

    @Basic
    @Column(name = "apply_organization_name")
    public String getApplyOrganizationName() {
        return applyOrganizationName;
    }

    public void setApplyOrganizationName(String applyOrganizationName) {
        this.applyOrganizationName = applyOrganizationName;
    }

    @Basic
    @Column(name = "apply_department_code")
    public String getApplyDepartmentCode() {
        return applyDepartmentCode;
    }

    public void setApplyDepartmentCode(String applyDepartmentCode) {
        this.applyDepartmentCode = applyDepartmentCode;
    }

    @Basic
    @Column(name = "apply_department_name")
    public String getApplyDepartmentName() {
        return applyDepartmentName;
    }

    public void setApplyDepartmentName(String applyDepartmentName) {
        this.applyDepartmentName = applyDepartmentName;
    }

    @Basic
    @Column(name = "apply_doctor_code")
    public String getApplyDoctorCode() {
        return applyDoctorCode;
    }

    public void setApplyDoctorCode(String applyDoctorCode) {
        this.applyDoctorCode = applyDoctorCode;
    }

    @Basic
    @Column(name = "apply_doctor_name")
    public String getApplyDoctorName() {
        return applyDoctorName;
    }

    public void setApplyDoctorName(String applyDoctorName) {
        this.applyDoctorName = applyDoctorName;
    }

    @Basic
    @Column(name = "need_handle")
    public Byte getNeedHandle() {
        return needHandle;
    }

    public void setNeedHandle(Byte needHandle) {
        this.needHandle = needHandle;
    }

    @Basic
    @Column(name = "patient_identity_card_type")
    public String getPatientIdentityCardType() {
        return patientIdentityCardType;
    }

    public void setPatientIdentityCardType(String patientIdentityCardType) {
        this.patientIdentityCardType = patientIdentityCardType;
    }

    @Basic
    @Column(name = "patient_identity_card_number")
    public String getPatientIdentityCardNumber() {
        return patientIdentityCardNumber;
    }

    public void setPatientIdentityCardNumber(String patientIdentityCardNumber) {
        this.patientIdentityCardNumber = patientIdentityCardNumber;
    }

    @Basic
    @Column(name = "serial_number")
    public Integer getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(Integer serialNumber) {
        this.serialNumber = serialNumber;
    }

    @Basic
    @Column(name = "history_diagnosis_describe")
    public String getHistoryDiagnosisDescribe() {
        return historyDiagnosisDescribe;
    }

    public void setHistoryDiagnosisDescribe(String historyDiagnosisDescribe) {
        this.historyDiagnosisDescribe = historyDiagnosisDescribe;
    }

    @Basic
    @Column(name = "patient_medical_card_type")
    public Byte getPatientMedicalCardType() {
        return patientMedicalCardType;
    }

    public void setPatientMedicalCardType(Byte patientMedicalCardType) {
        this.patientMedicalCardType = patientMedicalCardType;
    }

    @Basic
    @Column(name = "patient_medical_card_number")
    public String getPatientMedicalCardNumber() {
        return patientMedicalCardNumber;
    }

    public void setPatientMedicalCardNumber(String patientMedicalCardNumber) {
        this.patientMedicalCardNumber = patientMedicalCardNumber;
    }

    @Basic
    @Column(name = "appointment_time")
    public Date getAppointmentTime() {
        return appointmentTime;
    }

    public void setAppointmentTime(Date appointmentTime) {
        this.appointmentTime = appointmentTime;
    }

    @Basic
    @Column(name = "time_flag")
    public Byte getTimeFlag() {
        return timeFlag;
    }

    public void setTimeFlag(Byte timeFlag) {
        this.timeFlag = timeFlag;
    }

    @Basic
    @Column(name = "platform_mpi")
    public String getPlatformMpi() {
        return platformMpi;
    }

    public void setPlatformMpi(String platformMpi) {
        this.platformMpi = platformMpi;
    }

    @Basic
    @Column(name = "outpatient_dept_code")
    public String getOutpatientDeptCode() {
        return outpatientDeptCode;
    }

    public void setOutpatientDeptCode(String outpatientDeptCode) {
        this.outpatientDeptCode = outpatientDeptCode;
    }

    @Basic
    @Column(name = "consult_times_total")
    public Integer getConsultTimesTotal() {
        return consultTimesTotal;
    }

    public void setConsultTimesTotal(Integer consultTimesTotal) {
        this.consultTimesTotal = consultTimesTotal;
    }

    @Basic
    @Column(name = "consult_times_already")
    public Integer getConsultTimesAlready() {
        return consultTimesAlready;
    }

    public void setConsultTimesAlready(Integer consultTimesAlready) {
        this.consultTimesAlready = consultTimesAlready;
    }

    @Basic
    @Column(name = "sign_in_status")
    public Byte getSignInStatus() {
        return signInStatus;
    }

    public void setSignInStatus(Byte signInStatus) {
        this.signInStatus = signInStatus;
    }

    @Basic
    @Column(name = "sign_in_time")
    public Date getSignInTime() {
        return signInTime;
    }

    public void setSignInTime(Date signInTime) {
        this.signInTime = signInTime;
    }

    @Basic
    @Column(name = "allocation_time")
    public Date getAllocationTime() {
        return allocationTime;
    }

    public void setAllocationTime(Date allocationTime) {
        this.allocationTime = allocationTime;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "last_modify_time")
    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HoConsultAsk that = (HoConsultAsk) o;
        return consultId == that.consultId &&
                busType == that.busType &&
                Objects.equals(hospitalCode, that.hospitalCode) &&
                Objects.equals(hospitalName, that.hospitalName) &&
                Objects.equals(departmentId, that.departmentId) &&
                Objects.equals(departmentCode, that.departmentCode) &&
                Objects.equals(departmentName, that.departmentName) &&
                Objects.equals(consultType, that.consultType) &&
                Objects.equals(userId, that.userId) &&
                Objects.equals(consultUserId, that.consultUserId) &&
                Objects.equals(patientCode, that.patientCode) &&
                Objects.equals(personName, that.personName) &&
                Objects.equals(age, that.age) &&
                Objects.equals(gender, that.gender) &&
                Objects.equals(phoneNo, that.phoneNo) &&
                Objects.equals(doctorId, that.doctorId) &&
                Objects.equals(doctorCode, that.doctorCode) &&
                Objects.equals(doctorName, that.doctorName) &&
                Objects.equals(doctorJobTitle, that.doctorJobTitle) &&
                Objects.equals(cost, that.cost) &&
                Objects.equals(question, that.question) &&
                Objects.equals(expireTime, that.expireTime) &&
                Objects.equals(payTime, that.payTime) &&
                Objects.equals(cancelType, that.cancelType) &&
                Objects.equals(cancelTime, that.cancelTime) &&
                Objects.equals(finishedTime, that.finishedTime) &&
                Objects.equals(consultStatus, that.consultStatus) &&
                Objects.equals(tradeNo, that.tradeNo) &&
                Objects.equals(cancelReason, that.cancelReason) &&
                Objects.equals(hisPreVisitNo, that.hisPreVisitNo) &&
                Objects.equals(registeredSerialNo, that.registeredSerialNo) &&
                Objects.equals(receptionConfirmTime, that.receptionConfirmTime) &&
                Objects.equals(roomId, that.roomId) &&
                Objects.equals(onlineQuestioningScheId, that.onlineQuestioningScheId) &&
                Objects.equals(onlineScheDaypartingId, that.onlineScheDaypartingId) &&
                Objects.equals(consultAskTelephone, that.consultAskTelephone) &&
                Objects.equals(supervisonUploadFlag, that.supervisonUploadFlag) &&
                Objects.equals(supervisonUploadTime, that.supervisonUploadTime) &&
                Objects.equals(emergencyNumber, that.emergencyNumber) &&
                Objects.equals(hisOrderNumber, that.hisOrderNumber) &&
                Objects.equals(applyOrganizationCode, that.applyOrganizationCode) &&
                Objects.equals(applyOrganizationName, that.applyOrganizationName) &&
                Objects.equals(applyDepartmentCode, that.applyDepartmentCode) &&
                Objects.equals(applyDepartmentName, that.applyDepartmentName) &&
                Objects.equals(applyDoctorCode, that.applyDoctorCode) &&
                Objects.equals(applyDoctorName, that.applyDoctorName) &&
                Objects.equals(needHandle, that.needHandle) &&
                Objects.equals(patientIdentityCardType, that.patientIdentityCardType) &&
                Objects.equals(patientIdentityCardNumber, that.patientIdentityCardNumber) &&
                Objects.equals(serialNumber, that.serialNumber) &&
                Objects.equals(historyDiagnosisDescribe, that.historyDiagnosisDescribe) &&
                Objects.equals(patientMedicalCardType, that.patientMedicalCardType) &&
                Objects.equals(patientMedicalCardNumber, that.patientMedicalCardNumber) &&
                Objects.equals(appointmentTime, that.appointmentTime) &&
                Objects.equals(timeFlag, that.timeFlag) &&
                Objects.equals(platformMpi, that.platformMpi) &&
                Objects.equals(outpatientDeptCode, that.outpatientDeptCode) &&
                Objects.equals(consultTimesTotal, that.consultTimesTotal) &&
                Objects.equals(consultTimesAlready, that.consultTimesAlready) &&
                Objects.equals(signInStatus, that.signInStatus) &&
                Objects.equals(signInTime, that.signInTime) &&
                Objects.equals(allocationTime, that.allocationTime) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(lastModifyTime, that.lastModifyTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(consultId, hospitalCode, hospitalName, departmentId, departmentCode, departmentName, busType, consultType, userId, consultUserId, patientCode, personName, age, gender, phoneNo, doctorId, doctorCode, doctorName, doctorJobTitle, cost, question, expireTime, payTime, cancelType, cancelTime, finishedTime, consultStatus, tradeNo, cancelReason, hisPreVisitNo, registeredSerialNo, receptionConfirmTime, roomId, onlineQuestioningScheId, onlineScheDaypartingId, consultAskTelephone, supervisonUploadFlag, supervisonUploadTime, emergencyNumber, hisOrderNumber, applyOrganizationCode, applyOrganizationName, applyDepartmentCode, applyDepartmentName, applyDoctorCode, applyDoctorName, needHandle, patientIdentityCardType, patientIdentityCardNumber, serialNumber, historyDiagnosisDescribe, patientMedicalCardType, patientMedicalCardNumber, appointmentTime, timeFlag, platformMpi, outpatientDeptCode, consultTimesTotal, consultTimesAlready, signInStatus, signInTime, allocationTime, createTime, lastModifyTime);
    }
}

